﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace WorkSchedueSoft
{

    public enum PopWinMode { NONE, EDIT, ADD }

    class APPManager : Singleton<APPManager>
    {

        mainForm _main_win;
        EditWin _edit_win;
        CommandWin _command_win;

        public PopWinMode current_editwin_mode { get; set; }
        public PopWinMode current_commandwin_mode { get; set; }

        public mainForm Main_win
        {
            get
            {
                if (_main_win == null) _main_win = new mainForm();
                return _main_win;
            }
            set {
                _main_win = value;
            }
        }

        public EditWin Edit_win
        {
            get
            {
                return _edit_win;
            }
            set
            {
                _edit_win = value;
            }
        }

        public CommandWin Command_win
        {
            get
            {
                return _command_win;
            }
            set
            {
                _command_win = value;
            }
        }
    }
}
